package logic;

import java.util.List;
import dao.ItemDao;

public class ItemCatalogImpl implements ItemCatalog{
	private ItemDao itemDao;
	public void setItemDao(ItemDao itemDao)
	{
		this.itemDao = itemDao;
	}
	
	public List getItemList()
	{
		return this.itemDao.findAll();
	}
	
	public Item getItemByItemId(Integer itemId)
	{
		return this.itemDao.findByPrimaryKey(itemId);
	}
}
